package com.appkubes.mall.admin.application.promoter.promoter.entity.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;

@ApiModel("添加推广员")
@Data
public class PromoterAddVO {

    @ApiModelProperty("如果填写了，则是修改")
    String promoterKey;

    @NotEmpty(message = "推广员登录名称不能为空")
    String promoterName;

    String password;

    String description;

    @Pattern(regexp = "(ACTIVE|INACTIVE)", message = "状态格式不对")
    String status;
}
